package com.boilerCloud.dto.enums;
public enum OrderRecordEnum {  
	Pending("待受理", 1), Purchase("配件采购", 2), Drawing("图纸设计", 3), Software("软件设计", 4),
	Hardware("硬件装配",5),Output("出库",6),Shipping("装运",7),Complete("已完成",8);  
    // 成员变量  
    private String name;  
    private int index;  
    // 构造方法  
    private OrderRecordEnum(String name, int index) {  
        this.name = name;  
        this.index = index;  
    }  
    // 普通方法  
    public static String getName(int index) {  
        for (OrderRecordEnum c : OrderRecordEnum.values()) {  
            if (c.index == index) {  
                return c.name;  
            }  
        }  
        return null;  
    }
}